package com.ruoyi.project.xkx.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author WuYalong
 * @since 2021-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "details_id", type = IdType.AUTO)
    private Integer detailsId;

    /**
     * 订单表的订单编号 该详情属于哪个订单
     */
    private String orderNumber;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 课时数
     */
    private Integer courseHours;

    /**
     * 支付方式
     */
    private String wayName;

    /**
     * 订单最终支付金额
     */
    private Double wayAmount;

    /**
     * 结果集映射
     */
    @TableField(exist = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderDate;//订单日期
    @TableField(exist = false)
    private Double orderAmount;//订单金额
    @TableField(exist = false)
    private String categoryName;//订单类型
    @TableField(exist = false)
    private String courseNumber;//课程编号
    @TableField(exist = false)
    private String studentName;
    @TableField(exist=false)
    private String nickName;//顾问名称
}
